Sperm cells are formed in the seminiferous tubules of the testes.
The process is known as spermatogenesis,